import request from '../utils/request';
//仓库管理业务接口文档
const api = {
  //分页获取物料报废单数据列表
  GetMatchPageGoodsScrapBills(data?: any) {
    return request({
      url: '/api/GoodsScrapBill/GetMatchPageGoodsScrapBills',
      method: 'post',
      data,
    });
  },
  //创建物料报废单
  CreateNewGoodsScrapBill(data?: any) {
    return request({
      url: '/api/GoodsScrapBill/CreateNewGoodsScrapBill',
      method: 'post',
      data,
    });
  },
  //修改物料报废单
  UpdateGoodsScrapBill(data?: any) {
    return request({
      url: '/api/GoodsScrapBill/UpdateGoodsScrapBill',
      method: 'post',
      data,
    });
  },
  //获取物料报废单详情
  GetGoodsScrapBillDetail(data?: any) {
    return request({
      url: '/api/GoodsScrapBill/GetGoodsScrapBillDetail',
      method: 'post',
      data,
    });
  },
  //删除物料报废单
  DeleteGoodsScrapBill(data?: any) {
    return request({
      url: '/api/GoodsScrapBill/DeleteGoodsScrapBill',
      method: 'post',
      data,
    });
  },
  //确认物料报废单
  SureGoodsScrapBill(data?: any) {
    return request({
      url: '/api/GoodsScrapBill/SureGoodsScrapBill',
      method: 'post',
      data,
    });
  },
  //红冲物料报废单
  RedStrikeGoodsScrapBill(data?: any) {
    return request({
      url: '/api/GoodsScrapBill/RedStrikeGoodsScrapBill',
      method: 'post',
      data,
    });
  },
};
//业务开单接口
export default api;
